#encoding:utf-8
"""
用Python抓取指定页面
百度首页
"""

import urllib.request

url = "http://www.baidu.com"
data = urllib.request.urlopen(url).read()
data = data.decode('utf-8')
print(data)

